<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .center {
            width: 400px;
            margin: 50px auto;
            border: 5px solid transparent;
        }

        .img {
            margin-left: 15px;
            margin-top: 5px;
        }

        section {
            width: 340px;
            margin-left: 15px;
        }

        section p {
            font-family: '楷体';
        }

        .yin {
            width: 380px;
            height: 190px;
            margin: 0 auto;
            margin-top: -35px;
            display: flex;
            justify-content: space-around;
          
           
        }

        .yin .frist {
            position: relative;
            overflow: hidden;
        }

        .yin .frist .ying {
            width: 170px;
            height: 170px;
            position: absolute;
            background-color: #666;
            opacity: 0.7;
            top: 5px;
            left: -180px; 
            
           
            
        }
        

        .yin .frist .ying p {
            position: absolute;
            margin-top: 30px;

        }
      

        .yin .last {
            position: relative;
            overflow: hidden;
        }

        .yin .last .yg {
            width: 170px;
            height: 170px;
            position: absolute;
            background-color: #666;
            opacity: 0.7;
            top: 5px;  
             left: -180px;
             display: none;
              }
    </style>
</head>

<body>

    <div class="center">
        <div class="img">
            <img src="1.jpg" alt="">
            <section>
                <p>
                    【金溪】设计上运用了多层碟设计，形成了立体效果 的视觉效果， 创意独特，浓烈的印花和色彩够了出来 夏日异国情调优质的面料让小衫更有清凉的气息，做工也相当 考究。
                </p>
            </section>
        </div>
    </div>
    <div class="yin">
        <div class="frist"><img src="2.jpg" alt="">
            <div class="ying">

         <section class="one">
             <p>special品牌旗舰店 <br> <br> 最传统的设计色彩的欧洲设计 给你带来专属魅力。</p>
         </section>
                
              
                    
               
            </div>
        </div>
        <div class="last"><img src="3.jpg" alt="">
            <div class="yg">
               
                  <div class="one">
                       <p>special品牌旗舰店 <br> <br> 最传统的设计色彩的欧洲设计 给你带来专属魅力。</p>
                  </div>
                   
                
            </div>
        </div>
    </div>

    <script src="./jquery.js">

    </script>

</body>

</html>
<script>
    $('.center').mouseover(function () {
        $(this).css('borderColor', '#666');
    });
    $('.center').mouseout(function () {

        $(this).css('borderColor', 'transparent');
        
    });

     


    $('.frist').mouseenter(function(ev){
        $('.ying').animate({left:0, },300,)
    });
    $('.frist').mouseleave(function(ev){
        $('.ying').animate({left:-180,},300,)
    });
    $('.last').mouseenter(function(ev){
         $('.yg').css('display','block');
        $('.yg').animate({left:0, },300,)
    });
    $('.last').mouseleave(function(ev){
        
        $('.yg').animate({left:-180,},300,);
         $('.yg').css('display','none');
    });
</script>